<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="div">
        <!-- 输入分数，大于80 A  60-80显示B  60以下到0 显示 C  其他情况显示：输入错误 -->
        {{score}}
        <input type="text" placeholder="请输入分数" v-model="score" >
        <!-- 优先级:v-if优先级更高 -->
         <!-- <p v-if="num>=5" v-for="num in 10">A</p> -->
         <div v-for="num in 10">
            <p v-if="num>5">A</p>
         </div>



        <!-- <p v-else-if="score>=60 && score<80">B</p>
        <p v-else-if="score>=0 && score<60">C</p>
        <p v-else>输入错误</p>  -->

        <!-- v-show -->
        <!-- <p v-show="score>=80 && score<=100">v-show:A</p> -->

    </div>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        const app = Vue.createApp({

            data: function () {
                return {
                   score:0
                }
            }
        }).mount('#div');
    </script>

</body>

</html>